package com.gps.skyrc.bean;


import android.support.annotation.NonNull;

public class EventBusMessage<T> {

    private int code;
    private T data;

    public EventBusMessage(int code) {
        this.code = code;
    }

    public EventBusMessage(int code, T data) {
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    @NonNull
    @Override
    public String toString() {
        return "EventMessage{" + "code=" + code + ", data=" + data + '}';
    }
}